import {Component} from "react";
import UserContext from "./context/user-context";

class Profile extends Component {
    render() {
        console.log(this.context)
        return (
            <div>
                {this.context.userName}
            </div>
        )
    }
}

Profile.contextType = UserContext
export default Profile;